/*
* @Author: majingyu
* @Date:   2017-04-25 13:55:14
* @Last Modified by:   majingyu
* @Last Modified time: 2017-05-23 18:17:51
*/
import React from 'react';
import { connect } from 'react-redux';
import 'css/common/app.css'; 
import 'css/common/main.less';

import BottomTab from 'components/bottomTab.jsx';
import Publish   from 'components/publish.jsx';
import PropTypes from 'prop-types';
                

class APP extends React.Component{
    constructor(props){
        super(props);
    }
    render(){
        return(
            <div>
                <div className="contener">
                    {this.props.children}
                </div>
                <BottomTab />
                {
                    this.props.app.publishShow ? <Publish /> : ''
                }
                
            </div>
        )
    }
}


let visibileAPP = connect(state => {
    return {
        app:state.app,
        user:state.user
    }
})(APP);

export default visibileAPP;